#include "object.h"
#include "SFML\Graphics.hpp"

Object::Object() : position(0,0)
{
	//nothing
}

Object::~Object()
{
	//nothing
}

void Object::Animation(sf::Sprite &sprite, const float &x1, const float &y1, const float &x2, const float &y2)
{
	// Use a small portion of our sprite:
	sprite.setTextureRect(sf::IntRect(x1, y1, x2, y2));
}

// void SetAnimFrame(int n)
// {
// 	// SetSprite(n % SpriteCells, n / SpriteCells);
// }

void Update()
{
	// SetAnimFrame((int)Time.frameCount % AnimationLength);
}